import loginSocket from 'libloginSocket.so'
import registerSocket from 'libregisterSocket.so'

// import Time from '@ohos.Time';

export default {
    uri:[1],
    connectStatus:0,
//    mysocket:socket,
    loginSocket:loginSocket,
    registerSocket:registerSocket,
    uid:'',
    msg:"",
    onCreate() {
        console.info("Application onCreate");
        //修改此处为服务器地址和端口号
        this.loginSocket.connect("192.168.30.12",7777);
        this.registerSocket.connect("192.168.30.12",8080);
        // setInterval();
    },
    onDestroy() {
        console.info("Application onDestroy");
    },

    // setInterval() {        
    // var intervalID = setInterval(function() {            
    //   msg=this.mysocket.receive();
    // }, 500);    
    // }

};
